# 根目录 CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
project(QT_Call_OpenCV_DLL)

set(LIB_TYPE SHARED)
set(LIB_TYPE STATIC)
# set(LIB_TYPE OBJECT)

message("LIB_TYPE: ${LIB_TYPE}")

# 设置输出目录
message(STATUS "current binary dir: " ${CMAKE_BINARY_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# 添加子项目
add_subdirectory(dll_lib)
add_subdirectory(exe_app)
